package com.bdqn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    User login(String usrName,String usrPassword);

    Page<User> findPage(String usrName, Long roleId, Page<User> page);

    User selectUserName(@Param("usrName") String usrName);

    int add(User user);

    User selectId(@Param("usrId") Long usrId);

    int upd(User user);

    int del(Long usrId);

    List<User> findUsersByUsrNameAndUsrPassword(String usrName, String usrPassword);

    User getUserByUsrName(String usrName);
}
